<template>
  <basic-container>
    <el-button size="small"
               @click="$refs.selFile.open();">选择图片</el-button>
    <selFile ref="selFile"
             @callback="selFileCallBack"
             albumCode="pic_root"
             dialogTitle="选择图片1"
             selectType="checkbox"
             selMaxWidth="300px"
             selMaxHeight="300px"
    >
    </selFile>
    <uploadPic ref="uploadFile"
               @callback="uploadFileCallBack"
               albumCode="pic_evaluate"
    >
    </uploadPic>


    <el-button size="small"
               @click="$refs.selFile2.open();">选择视频</el-button>
    <selFile ref="selFile2"
             @callback="selFileCallBack2"
             albumCode="video_root"
             dialogTitle="选择视频2"
             selMaxWidth="300px"
             selMaxHeight="300px"
             resType="video"
    >
    </selFile>

  </basic-container>
</template>
<script>

import selFile from '@/components/file/selFile'
import uploadPic from '@/components/file/uploadPic';

export default {
  data () {
    return {
      data: ["sss", "dddd", "dfsdf"],
    };
  },
  components: {
    selFile, uploadPic
  },
  methods: {
    selFileCallBack (obj) {
      alert(obj);
    },
    uploadFileCallBack (urls) {
      alert(urls);
    },
    selFileCallBack2(obj){
      alert(obj);
    }
  }
};
</script>
<style>
</style>
